"use strict";
class Doctor {
    constructor(name, age) {
        this.name = name;
        this.age = age;
    }
    speak(n) {
        for (let i = 0; i < n; i++) {
            console.log(`我叫${this.name}，今年${this.age}岁`);
        }
    }
}
